<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>三目运算符</title>
</head>
<body>
<script>
    let b = true
    let result = b ? "真" : "假"
    console.log(result);
</script>
</body>
</html>